home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C / Games / Xconq 7.1.0 / src / xconq-7.1.0 / kernel / config.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-07-07  |  4.2 KB  |  150 lines  |  [TEXT/R*ch]

  1. /* Configuration-related definitions for Xconq.
  2.    Copyright (C) 1987, 1988, 1989, 1991, 1992, 1993, 1994, 1995
  3.    Stanley T. Shebs.
  4.  
  5. Xconq is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2, or (at your option)
  8. any later version.  See the file COPYING.  */
  9.  
  10. /* This file has many things that can be tweaked for local preferences.
  11.    In general, there will not be any need to touch these. */
  12.    
  13. /* System dependencies can also go here, although it is much preferable
  14.    to write things so that they are not needed in the first place. */
  15.  
  16. /* Universally required include files. */
  17.  
  18. #include <stdio.h>
  19. #include <ctype.h>
  20. #include <string.h>
  21. #include <time.h>
  22.  
  23. #if defined(__STDC__) || defined(MPW_C)
  24. #include <stddef.h>
  25. #include <stdarg.h>
  26. #include <stdlib.h>
  27. #endif
  28.  
  29. #if defined(__STDC__) || defined(MPW_C)
  30. #ifndef ANSI_PROTOTYPES
  31. #define ANSI_PROTOTYPES
  32. #endif
  33. #endif
  34.  
  35. /* Default names for special files. */
  36.  
  37. #ifndef NEWSFILE
  38. #define NEWSFILE "news.txt"
  39. #endif
  40.  
  41. #ifndef SCOREFILE
  42. #define SCOREFILE "scores.xconq"
  43. #endif
  44.  
  45. #ifndef STATSFILE
  46. #define STATSFILE "stats.xconq"
  47. #endif
  48.  
  49. /* The name of the default game. */
  50.  
  51. #ifndef STANDARD_GAME
  52. #define STANDARD_GAME "standard"
  53. #endif
  54.  
  55. /* Default random world size.  Adjust these to taste - for the standard
  56.    game, 60x60 is a moderate length game, 30x30 is short, 360x120 is
  57.    L-O-N-G !  (Remember to multiply the two numbers to get an idea of the
  58.    number of cells that will be in the world!)  Defaults can also be set
  59.    by modules explicitly, so this is really a "default default" :-) . */
  60.  
  61. #ifndef DEFAULTWIDTH
  62. #define DEFAULTWIDTH 60
  63. #endif
  64. #ifndef DEFAULTHEIGHT
  65. #define DEFAULTHEIGHT 30
  66. #endif
  67.  
  68. /* Default world circumference.  If this matches the default width,
  69.    then the game area wraps around in x; otherwise it will be a
  70.    polygon. */
  71.  
  72. #ifndef DEFAULTCIRCUMFERENCE
  73. #define DEFAULTCIRCUMFERENCE 360
  74. #endif
  75.  
  76. /* Absolute maximum number of sides that can play.  This cannot be
  77.    set higher than 30 without hacking up side mask machinery.  Smaller
  78.    values will incur fewer assorted memory penalties, and in any case
  79.    games with lots of sides don't usually play very well. */
  80.  
  81. #ifndef MAXSIDES
  82. #define MAXSIDES 15
  83. #endif
  84.  
  85. /* Absolute maximum number of kinds of units.  The lower this is set,
  86.    the less memory needed (although most allocation actually works off
  87.    the actual number of types, so effect is minor), but 126 is
  88.    absolutely the top unless you want to do lots of rewriting. */
  89.  
  90. #ifndef MAXUTYPES
  91. #define MAXUTYPES 126
  92. #endif
  93.  
  94. /* Maximum number of material/supply types.  Limits same as for unit types. */
  95.  
  96. #ifndef MAXMTYPES
  97. #define MAXMTYPES 126
  98. #endif
  99.  
  100. /* Maximum number of terrain types.  Limits same as for unit types. */
  101.  
  102. #ifndef MAXTTYPES
  103. #define MAXTTYPES 126
  104. #endif
  105.  
  106. /* Some parts of the code rarely need the full magnitude of the MAX*TYPE
  107.    values, so these values are used to cut down average allocation.  They
  108.    can be adjusted to favor the kinds of game designs that you usually run. */
  109.  
  110. #define INITMAXUTYPES 20
  111. #define INITMAXMTYPES  5
  112. #define INITMAXTTYPES 15
  113.  
  114. /* All names, phrases, and messages must be able to fit in statically
  115.    allocated buffers of this size. */
  116.  
  117. #define BUFSIZE 255
  118.  
  119. /* The following options are (should be anyway) mostly independent of
  120.    each other, and settable at will. */
  121.  
  122. /* When defined, save files will be removed after the game starts up
  123.    successfully.  This keeps junk from lying around, but some folks
  124.    prefer that they be kept just in case. */
  125. /* (should make this work or remove it) */
  126. #define RMSAVE
  127.  
  128. /* When defined, messages will be somewhat nastier.  Set this to be
  129.    appropriate for your intended audience, heh-heh :-) */
  130.  
  131. #define RUDE
  132.  
  133. /* This sets a limit on how many previous views will be retained.
  134.    Each increment adds 4*area bytes of allocation. */
  135.  
  136. #define MAXVIEWHISTORY 0
  137.  
  138. /* If defined, then an editing mode is available.  This is also a
  139.    powerful way to cheat, which is why it can be disabled. */
  140.  
  141. #define DESIGNERS
  142.  
  143. /* If defined, some (actually a lot) debugging code will be included. */
  144.  
  145. #define DEBUGGING
  146.  
  147. /* If defined, the compiler will be included. */
  148.  
  149. #define COMPILER
  150.